package com.lagou.phase1.module3.work1;

//定义测试类来测试效果
public class ToStringTest {
    public static void main(String[] args){
        //1.创建需要的数组
        int[] arr1=null;
        int[] arr2 = new int[0];
        int[] arr3 = {1,2,3,4,5};
        //打印相应的结果
        System.out.println("int数组为null时："+ ToString.toString(arr1));
        System.out.println("int数组长度为0时："+ ToString.toString(arr2));
        System.out.println("int数组内容为{1，2，3，4，5}时："+ ToString.toString(arr3));



    }
}
